const http = uni.$u.http

const api = {
	list:'/api/miniapp/shield.php?act=list',
	shield:'/api/miniapp/shield.php?act=addOrDelete',
	get:'/api/miniapp/shield.php?act=get',
	isShield:'/api/miniapp/shield.php?act=isShield',
	
}

export const list = (params, config) => http.post(api.list,params, {
	custom: {
		toast: false
	},
	
	...config
})

export const isShield = (params,config) => http.post(api.isShield,params, {
	custom: {
		toast: false
	},
	
	...config
})

export const get_shield = (params,config) => http.post(api.get,params, {
	custom: {
		toast: false
	},
	
	...config
})


export const shield = (params,config) => http.post(api.shield,params, {
	custom: {
		toast: false
	},
	
	...config
})

